package linkedList;

public class Test {
    public static void main(String[] args) {
        LinkedList<Integer> linkedList = new LinkedList<>();
        System.out.println(linkedList);
        for (int i = 0; i < 10; i++){
            linkedList.addLast(i);
        }
        System.out.println(linkedList);
        System.out.println(linkedList.contains(2));;
        System.out.println(linkedList.get(1));;
        linkedList.set(0,-1);
        System.out.println(linkedList);
        linkedList.remove(linkedList.getSize() - 1);
        System.out.println(linkedList);
    }
}
